home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 34.zip
/
BS1 part 34
/
FredFish PD 314.adf
/
Zc
/
zcsrc.lzh
/
IOLib
/
stdio
/
isatty.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-05-29
|
340b
|
22 lines
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
extern struct _device *_devtab[];
int
isatty(fd)
unsigned int fd;
{
extern long IsInteractive();
register struct _device *fp;
fp = &((*_devtab)[fd]);
if ( fd >=OPEN_MAX || !fp->fileHandle ) {
errno = EBADF;
return -1;
}
return ( IsInteractive(fp->fileHandle) != 0 );
}